/*放置各个页面都会用到的css*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*给整个页面加背景*/
html body{
    height: 100%;
}
body{
    background-image: url("../image/background_Main.jpeg");
    background-size: 100%;
}
.nav{
    width: 100%;
    height: 50px;
    /*0.2是透明度 */
    background-color: rgba(0, 0, 0, 0.2);
    color: rgb(29, 234, 255);

    display: flex;
    /*垂直居中*/
    align-items: center;
}
.nav img{
    width: 40px;
    height: 42px;
    object-fit:cover;
    margin-left: 30px;
    margin-right: 10px;
}
.nav .spacer{
    width: 65%;
}
.nav a{
    color: rgb(91, 235, 249);
    text-decoration: none;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 5px;
    border-right: 1.5px rgb(29, 234, 255) solid;
}
.nav a:hover{
    color: rgb(185, 155, 164);
    border-right: 1.5px rgb(185, 155, 164) solid;
}

.container{
    width: 1000px;
    /*这个写法 - 左右必须有空格*/
    height: calc(100% - 50px);
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
}
.container .left{
    height: 100%;
    width: 200px;
    color: rgb(184, 194, 205);
}

.container .right{
    height: 600px;
    width: 795px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
}

.card{
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card img{
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border-bottom: 1px white solid;
    object-fit:cover;
}
.card button{
    border: none;
    outline: none;
    width: 100px;
    height: 25px;
    margin-top: 6px;
    text-align: center;
    border-radius: 17px;
    color: whitesmoke;
    background-color: rgba(0, 0, 0,0.3);
}
.card button:hover{
    color: rgb(141, 250, 246);
}
.card h3{
    padding: 10px;
}

.card a{
    /* 设为块级元素,怕行内样式不生效 */
    display: block;
    text-align: center;
    text-decoration: none;
    color: rgba(184, 194, 205,0.6);
}

.card .counter{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 6px;
    font-weight: bold;
}
.card .counter div div{
    text-align: center;
}
.card .counter .article{
    width: 70px;
    font-weight: bold;
    border-radius: 3px;
    /* 设置过度时间 */
    transition: all 0.5s;
}
.card .counter .article div{
    margin: 3px;
}
.card .counter .article:hover{
    background: rgb(141, 250, 246);
    color: rgb(77, 63, 60);
}

.card .counter .type{
    width: 70px;
    font-weight: bold;
    border-radius: 3px;
    /* 设置过度时间 */
    transition: all 0.5s;
}
.card .counter .type div{
    margin: 3px;
}
.card .counter .type:hover{
    background: rgb(141, 250, 246);
    color: rgb(77, 63, 60);
}